/**
 * @file 时间本地化处理管道符
 */
import {Pipe, PipeTransform} from '@angular/core';

@Pipe({name: 'dataToLocale'})

export class DataToLocalePipe implements PipeTransform {

    transform(input: any): string {
        return new Date(input).toLocaleString();
    }
}